import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
    name: 'userType'
})
export class UserTypePipe implements PipeTransform {

    transform(value: any, args?: any): any {
        switch (value) {
            case 0:
                return "成员";
            case 1:
                return "管理员";
        }
        return value;
    }
}
